package com.yj.core.constants;

/**
 * 用户认证常量定义
 *
 * @author cyj
 * @date 19-03-13
 */
public final class AuthConstants {
    /**
     * HTTP 请求参数
     */
    public static final String HTTP_HEADER_APIKEY = "X-Api-Key";
    public static final String HTTP_HEADER_USERID = "X-User-Id";
    public static final String HTTP_HEADER_TOKEN = "X-Auth-Token";
    public static final String HTTP_HEADER_HOSID = "X-Hos-Id";
    public static final String HTTP_HEADER_APP_VERSION = "appversion";
    public static final String HTTP_HEADER_LOGIN_TYPE = "Login-Type";


    /**
     * API-KEY定义
     */
    public static final String PATINET_APP_API_KEY = "5faadbf7-7200-42b2-8466-acdb7ee349e1";
    public static final String DOCTOR_APP_API_KEY = "5faadbf7-7200-42b2-8466-acdb7ee349e2";
    public static final String MNG_API_KEY = "5faadbf7-7200-42b2-8466-acdb7ee349e3";
    public static final String THIRD_USER_API_KEY = "5faadbf7-7200-42b2-8466-acdb7ee349e5";
    public static final String SERVICE_API_KEY = "5faadbf7-7200-42b2-8466-acdb7ee349e6";
    public static final String PHY_API_KEY = "5faadbf7-7200-42b2-8466-acdb7ee349e6";


    /**
     * Token类型 1:accessToken 2:refreshToken
     */
    public static final Integer ACCESS_TOKEN = 1;
    public static final Integer REFRESH_TOKEN = 2;

    /**
     * jwt token过期时间（s）
     */
    public static final Long DEFAULT_REFRESH_TOKEN_EXPIRE = 24 * 60 * 60L;
    /**
     * 10小时　app过期时间
     */
    public static final Long DEFAULT_APP_TOKEN_EXPIRE = 10 * 60 * 60L;
    /**
     * 30分钟　 pc过期时间
     */
    public static final Long DEFAULT_WEB_TOKEN_EXPIRE = 30 * 60L;
}
